<include file="Public/header"/>
<div class="x-body">
    <form class="layui-form" action="{:U('update')}" method="post">
        <div class="layui-form-item">
            <label for="jiner" class="layui-form-label">
                <span class="x-red">*</span>抵用金额
            </label>
            <div class="layui-input-inline" style="width:80%;">
                <input type="number" name="jiner" id="jiner" required="" lay-verify="required"                autocomplete="off" value="{$data['jiner']}"  class="layui-input">
            </div>
        </div>        <div class="layui-form-item">            <label for="type" class="layui-form-label"><span class="x-red">*</span>类型</label>            <div class="layui-input-inline" style="width:80%;">                <select name="type">                    <option value="1" <php>if($data['type'] == 1) echo 'selected'</php>>通用卷</option>                    <option value="2" <php>if($data['type'] == 2) echo 'selected'</php>>满减卷</option>                </select>            </div>        </div>
        <div class="layui-form-item">
            <label for="tips" class="layui-form-label"><span class="x-red">*</span>备注 </label>
            <div class="layui-input-inline" style="width:80%;">
                <input type="text" value="{$data['tips']}" required="" lay-verify="required"                name="tips" id="tips" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="amount" class="layui-form-label"><span class="x-red">*</span>可领数量</label>
            <div class="layui-input-inline" style="width:80%;">
                <input type="number" value="{$data['amount']|default=0}" required="" lay-verify="required"                id="amount" name="amount" autocomplete="off" class="layui-input">
            </div>
        </div><!--         <div class="layui-form-item">            <label for="status" class="layui-form-label"><span class="x-red">*</span>状态</label>            <div class="layui-input-inline" style="width:80%;">                <select name="status">                    <option value="1" <php>if($data['status'] == 1) echo 'selected'</php>>下架</option>                    <option value="2" <php>if($data['status'] == 2) echo 'selected'</php>>上架</option>                </select>            </div>        </div> -->
        <div class="layui-form-item">            <label for="money" class="layui-form-label"><span class="x-red">*</span>满足金额 </label>            <div class="layui-input-inline" style="width:80%;">                <input type="number" value="{$data['money']|default='0.00'}" required="" lay-verify="required"                id="money" name="money" autocomplete="off" class="layui-input">            </div>        </div>

        
        <div class="layui-form-item">
            <label for="endtime" class="layui-form-label"><span class="x-red">*</span>截止日期</label>
            <div class="layui-input-inline" style="width:80%;">
                <input type="text" value="{$data['endtime']}" placeholder="截止日期"  name="endtime"  id="endtime" required="" lay-verify="required"    autocomplete="off" class="layui-input">
            </div>
        </div>				<input type="hidden" value="{$data['id']}" name="id">				
        <div class="layui-form-item">
            <label for="L_repass" class="layui-form-label">
            </label>
            <button  class="layui-btn" lay-filter="submit" lay-submit="submit">
                保存
            </button>
        </div>
    </form>
</div><script>layui.use('laydate', function(){	var laydate = layui.laydate;	laydate.render({		elem: '#endtime',		type: 'date'	});});</script>

<include file="Public/footer"/>